Skip to content

key proposer preferences by slot and dependent root - #11242

Merged
mehdi-aouadi merged 7 commits into
Consensys-Incorporated:masterfrom
mehdi-aouadi:11236-reorder-proposer-preferences
Sep 14, 2026
Merged

mehdi-aouadi merged 7 commits into
Consensys-Incorporated:masterfrom
mehdi-aouadi:11236-reorder-proposer-preferences

Conversation

@mehdi-aouadi

@mehdi-aouadi mehdi-aouadi commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

PR Description

Order proposer preferences by slot and dependant root

Fixed Issue(s)

fixes #11236

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Note

Medium Risk
Changes Gloas gossip validation and how payload building attributes pick target gas limits; incorrect dependent-root matching could reject valid bids or use wrong preferences.

Overview
Proposer preferences are no longer stored or looked up by proposal slot alone. Accepted preferences are keyed by (proposal slot, dependent root), with a new getProposerPreferencesForSlot API for listing everything at a slot.

Shuffling dependent root resolution is centralized in ShufflingDependentRootUtil (fork-choice ancestor at the spec’s dependent slot). GossipValidationHelper, ProposersDataManager (payload targetGasLimit), and ExecutionPayloadBidGossipValidator now resolve the dependent root from the relevant block root and proposal slot before fetching preferences.

Bid gossip validation defers preference/fee-recipient/gas-limit/head-compatibility checks until parent beacon state is available, then matches preferences using that dependent root. ProposerPreferencesGossipValidator deduplication uses (proposal_slot, dependent_root) to align with the spec tuple order.

Reference tests and unit tests are updated for the new manager API and bid validation ordering.

Reviewed by Cursor Bugbot for commit 3a55c94. Bugbot is set up for automated code reviews on this repo. Configure here.

tbenr
tbenr previously approved these changes Sep 4, 2026

@tbenr tbenr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we probably need to reorder the checks so that cheaper checks are done before the shuffling

@mehdi-aouadi mehdi-aouadi self-assigned this Sep 7, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 130b2a5. Configure here.

@mehdi-aouadi
mehdi-aouadi requested a review from tbenr September 9, 2026 16:40

@tbenr tbenr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I'm going to open an optional followup issue

@mehdi-aouadi
mehdi-aouadi enabled auto-merge (squash) September 14, 2026 08:24
@mehdi-aouadi
mehdi-aouadi merged commit 5ecd129 into Consensys-Incorporated:master Sep 14, 2026
93 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 14, 2026
@mehdi-aouadi
mehdi-aouadi deleted the 11236-reorder-proposer-preferences branch September 14, 2026 09:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reorder Seen's proposer preferences's key

2 participants